﻿import CHostPoint;
class CHostPanel
{
	var HostArray:Array;
	public function CHostPanel(value:Array)
	{
		if(value)
		{
			HostArray = value;
		}else
		{
			HostArray = getTempArray();
		}
	}
	public function setHostArray(value:Array):Void
	{
		HostArray = value;
	}
	public function getHostArray():Array
	{
		return HostArray;
	}
	private function getTempArray():Array
	{
		var tempArray:Array = new Array();
		for(var i=0;i<5;i++)
		{
			var HostPoint:CHostPoint = new CHostPoint();
			tempArray.push(HostPoint);
		}
		return tempArray;
	}
};